<%@ page language="java" import="java.util.*,bookshop.config.VersionInfo" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/main.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"/>">
    <script type="text/javascript" src="<c:url value="/js/common.js"/>"></script>
	
    <script type="text/javascript">
      var leftMenuIsShow=true;
	    
	    function switchLeftMenuBar(arrowImage)
	    {
	       hide('navigator');
	       leftMenuIsShow=leftMenuIsShow==true?false:true;
	       
	       if(leftMenuIsShow==true)
	       {
	         arrowImage.title="隐藏左侧菜单";
	         arrowImage.src="<c:url value="/pics/backend/arrow_left.gif"/>";
	       }else{
	         arrowImage.title="显示左侧菜单";
	         arrowImage.src="<c:url value="/pics/backend/arrow_right.gif"/>";
	       }
	    }
    
    
    
      function logout(){
      if(confirm("您真的要退出系统吗？")){
          location.href="<c:url value="securityMgr?act=logout"/>";
           }
      }
    
    
    </script>


 </head>
 <body>
       <!-- 头部区域 -->
       <div id="header">
             <div id="headleft"></div>
             <div id="info">
                     <div id="time"></div>
                     <div id="userinfo">
                                                   管理员:${loginedMgr.realName} 
                     <span id="logout" onclick="logout()">[退出系统]</span>                             
                     </div>
             </div>
             <div id="header-large-image"></div>
             <div id="header-small-image"></div>
       </div>
       
       
       <!--菜单区  -->
       <div id="pagebody">
             <div id="navigator">
                   <div class="leftNavHeader">在库图书</div>
                   <div class="leftNavRootBox">
                         <a href="<c:url value="/bookMgr?act=input_book"/>" target="mainFrame">图书入库</a>
                   </div>
                   <div class="leftNavRootBox">
		                 <a href="<c:url value="/bookMgr?act=qryloadall"/>" target="mainFrame">图书管理</a>
		           </div> 
		  
                   <div class="leftNavHeader">图书类别</div>
		           <div class="leftNavRootBox">
					     <a href="<c:url value="/categoryMgr?act=input_ctg"/>" target="mainFrame">新增类别</a>
		           </div>
		           <div class="leftNavRootBox">
		                 <a href="<c:url value="/categoryMgr?act=qryloadall"/>"target="mainFrame">类别管理</a>
		           </div>
		  
		           <div class="leftNavHeader">管理员账户</div>
		           <div class="leftNavRootBox">
					             <a href="<c:url value="/managerMgr?act=input_manager"/>"target="mainFrame">新增账户</a>
		           </div>
		           <div class="leftNavRootBox">
		                         <a href="<c:url value="/managerMgr?act=loadManagers"/>" target="mainFrame">账户管理</a>
		           </div>
		  
		           <div class="leftNavHeader">顾客管理</div>
			       <div class="leftNavRootBox">
			                     <a href="<c:url value="/customerMgr?act=qryloadall"/>"target="mainFrame">顾客管理</a>
			       </div>
			 
                   <div class="leftNavHeader">用户评论管理</div>
		           <div class="leftNavRootBox">
		                         <a href="<c:url value="/commentMgr?act=qryloadall"/>" target="mainFrame">用户评论管理</a>
		           </div>
		     
		           <div class="leftNavHeader">订单管理</div>
			       <div class="leftNavRootBox">
					             <a href="<c:url value="/orderMgr?act=qryOrder"/>" target="mainFrame">查询订单</a>
			       </div>
			       <div class="leftNavRootBox">
					             <a href="<c:url value="/orderMgr?act=showOrderTrace"/>"  target="mainFrame">订单跟踪查询</a>
			       </div>
			 
		           <div class="leftNavDelimiter"></div>
             </div>
       </div>
       
       
       <!--隐藏左侧菜单  -->
       <div id="seprator">
            <img style="margin-bottom:25px" src="<c:url value="/pics/backend/bar.jpg"/>" width="14" height="150"/>
	            <img id="hiddenArrow"
	                 style="margin-left:5px; cursor:hand"
	                 src="<c:url value="/pics/backend/arrow_left.gif"/>" 
	                 width="5" 
	                 height="9"
	                 onclick="switchLeftMenuBar(this);"/>
       </div>


       <!-- 主区域 -->
       <div style="float:left;">
             <iframe id="mainFrame"
                     name="mainFrame"
                     src="<c:url value="/temp.jsp"/>" 
                     frameborder="0"
                     width="100%"
	                 height="800px"
	                 style="margin:0px;padding:0px"  scrolling="yes">    
             </iframe>
       </div>    
       <div id="footer">
	         <%=VersionInfo.buildFooterStr()%>
 	   </div>   
 	   <script type="text/javascript">
 	    window.setInterval("showTime($('time'));",1000);
 	   </script>  
       
  </body>
</html>
